package com.quasar.hpatient.model.litePalmodel;

import com.bigkoo.pickerview.model.IPickerViewData;

import org.litepal.crud.DataSupport;

/**
 * name : lishuai
 * time : 2017/9/26
 * title:  科室信息表
 */

public class DepartMentInfodb extends DataSupport implements IPickerViewData {


    public DepartMentInfodb(int id, int primaryid, int pid, int level, String name, String description, int status, int version) {
        this.id = id;
        this.primaryid = primaryid;
        this.pid = pid;
        this.level = level;
        this.name = name;
        this.description = description;
        this.status = status;
        this.version = version;
    }

    private int id;
    private int primaryid;
    private int pid;//科室上级ID
    private int level;//科室级别
    private String name;//科室名称
    private String description;//科室描述信息
    private int status;
    private int version;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPrimaryid() {
        return primaryid;
    }

    public void setPrimaryid(int primaryid) {
        this.primaryid = primaryid;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }


    @Override
    public String getPickerViewText() {
        return getName();
    }
}
